﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;


namespace SkyBase
{
    class Stairs:GameObject
    {
        public Stairs(Vector2 locationIn, World worldIn)
            : base("stairs", locationIn, Storage.getTexture("TeleportationPlate"), false, worldIn)
        {
            checkForCollision = true;
            ghost = true;
        }

        public override void onCollision(GameObject collidee)
        {
            if (collidee is Player && !(collidee is Enemy))
            {
                //World.clearLevel();
                //World.Floor++;
                //World.populateMap();
                //World.spawnPlayer();
                world.levelUp = true;
            }
        }
    }
}
